public ProjectVisitModel AddProjectVisit([FromBody] ProjectVisitModel project) { Response.StatusCode = 201; string result = ProjectVisitService.AddProjectVisit(project, dbConn); project.Id = Convert.ToInt32(result); return(project); }
public List <ProjectVisitModel> GetProjectVisits([FromRoute] int projectId) { return(ProjectVisitService.GetProjectVisits(projectId, dbConn)); }
public string DeleteProjectVisit([FromRoute] int id) { return(ProjectVisitService.DeleteProjectVisit(id, dbConn)); }
public string UpdateProjectVisit([FromRoute] int id, [FromBody] ProjectVisitModel project) { return(ProjectVisitService.UpdateProjectVisit(project, dbConn)); }