public async Task <IHttpActionResult> GetById(int id) { ProjectManager projectManager = await projectManagerRepository.FindByCondition(item => item.Id == id).FirstOrDefaultAsync(); if (projectManager == null) { return(Content(HttpStatusCode.NotFound, "Project Manager not found")); } return(Ok(projectManager)); }