public HttpResponseMessage GetProjectDeatails(int teamLeaderId) => new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <List <Project> >(TeamLeaderLogic.GetProjectDeatails(teamLeaderId), new JsonMediaTypeFormatter()) };
public HttpResponseMessage GetProjectDeatails(int teamLeaderId) => new HttpResponseMessage(HttpStatusCode.OK) { //curl -X GET -v http://localhost:59628/api/getProjectDeatails/5 Content = new ObjectContent <List <Project> >(TeamLeaderLogic.GetProjectDeatails(teamLeaderId), new JsonMediaTypeFormatter()) };