public static HttpResponseMessage SoftDeleteProjectAtLocation(int ProjectLocationId, bool isOpen) { try { int val = ProjectLocationDal.SoftDeleteProjectAtLocation(ProjectLocationId, isOpen); return(new HttpResponseMessage(HttpStatusCode.OK)); } catch (Exception ex) { Console.WriteLine("EXCEPTION: " + ex); return(new HttpResponseMessage(HttpStatusCode.BadRequest)); } }
public static HttpResponseMessage AddProjectToLocation(ProjectLocationInfo ProjLoc) { try { int val = ProjectLocationDal.AddProjectAtLocation(ProjLoc); return(new HttpResponseMessage(HttpStatusCode.OK)); } catch (Exception ex) { Console.WriteLine("EXCEPTION: " + ex); return(new HttpResponseMessage(HttpStatusCode.BadRequest)); } }
public static ProjectInfo[] GetActiveProjectsAtLocation(int id) { ProjectInfo[] projectInfo = ProjectLocationDal.GetActiveProjectsAtLocation(id); return(projectInfo); }