public HttpResponseMessage EditEmployeeProjectRoleAssignmnet(Project_role project_roles) { HttpResponseMessage response = null; try { if (project_roles != null) { ProjectRepo.EditEmployeeProjectRoleAssignmnet(project_roles); response = Request.CreateResponse(HttpStatusCode.OK, new EMSResponseMessage("EMS_001", "Employee details assigned to the given project has been changed", "Employee details assigned to the given project has been changed")); } else { response = Request.CreateResponse(HttpStatusCode.OK, new EMSResponseMessage("EMS_102", "Please check input Json, Project details and employee status", "Please check input Json, Project details and employee status")); } } catch (Exception exception) { Debug.WriteLine(exception.Message); Debug.WriteLine(exception.GetBaseException()); response = Request.CreateResponse(HttpStatusCode.OK, new EMSResponseMessage("EMS_101", "Application Error", exception.Message)); } return(response); }