Exemplo n.º 1
0
        public JsonResult <IEnumerable <ProjectInfo> > FetchActiveProjectsAtLocation(int id)
        {
            ProjectInfo[] ListOfProjects = ProjectLocationBl.GetActiveProjectsAtLocation(id);

            var proj = from c in ListOfProjects
                       select c;

            return(Json(proj));
        }
Exemplo n.º 2
0
 public HttpResponseMessage Post(ProjectLocationInfo ProjLoc)
 {
     return(ProjectLocationBl.AddProjectToLocation(ProjLoc));
 }
Exemplo n.º 3
0
 public HttpResponseMessage DisableProjectAtLocation(int id, bool isOpen)
 {
     return(ProjectLocationBl.SoftDeleteProjectAtLocation(id, isOpen));
 }