ReviewR.Web.Api.ChangesController.Get C# (CSharp) Method

Get() public method

public Get ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage
        public HttpResponseMessage Get(int id)
        {
            Requires.InRange(id >= 0, "id");

            FileChange change = Changes.GetChange(id);
            if (change == null)
            {
                return NotFound();
            }
            FileDiffModel file = Diff.ParseFileDiff(change.FileName, change.Diff);
            AttachComments(change, file);
            return Ok(file);
        }