Beispiel #1
0
        public ProjectVisitModel AddProjectVisit([FromBody] ProjectVisitModel project)
        {
            Response.StatusCode = 201;

            string result = ProjectVisitService.AddProjectVisit(project, dbConn);

            project.Id = Convert.ToInt32(result);
            return(project);
        }
Beispiel #2
0
 public List <ProjectVisitModel> GetProjectVisits([FromRoute] int projectId)
 {
     return(ProjectVisitService.GetProjectVisits(projectId, dbConn));
 }
Beispiel #3
0
 public string DeleteProjectVisit([FromRoute] int id)
 {
     return(ProjectVisitService.DeleteProjectVisit(id, dbConn));
 }
Beispiel #4
0
 public string UpdateProjectVisit([FromRoute] int id, [FromBody] ProjectVisitModel project)
 {
     return(ProjectVisitService.UpdateProjectVisit(project, dbConn));
 }