BillableHoursWebApp.Api.Controllers.ProjectsController.GetByCategory C# (CSharp) Method

GetByCategory() private method

private GetByCategory ( int id ) : IHttpActionResult
id int
return IHttpActionResult
        public IHttpActionResult GetByCategory(int id)
        {
            var result = this.data.Projects
                .Find(x => x.CategoryId == id && !x.IsComplete)
                .ProjectTo<ProjectResponseModel>()
                .ToList();

            return this.Ok(result);
        }