Beispiel #1
0
        public object Delete([FromBody] ProjectIDModel projectIDModel)
        {
            var project = (Project)HttpContext.Current.Items["project"];

            new ProjectBLL().DeleteProjectAndObjects(project);

            return(new HttpResponseMessage(HttpStatusCode.OK));
        }
Beispiel #2
0
        public object Get([FromBody] ProjectIDModel projectIDModel)
        {
            var project = (Project)HttpContext.Current.Items["project"];

            return(ProjectModel.GetProjectObject(project));
        }