public object Delete([FromBody] ProjectOrganismIDModel projectOrganismIDModel) { Project_Organisms projectOrganism = (Project_Organisms)HttpContext.Current.Items["projectOrganism"]; HttpContext.Current.Items["project"] = projectOrganism.Project; new Project_OrganismsBLL().DeleteProject_OrganismByProjectOrganismID((int)projectOrganismIDModel.ProjectOrganismID); return(this.GetAll(new ProjectIDModel())); }
public object Get([FromBody] ProjectOrganismIDModel projectOrganismIDModel) { Project_Organisms projectOrganism = (Project_Organisms)HttpContext.Current.Items["projectOrganism"]; return(ProjectOrganismModel.GetProjectOrganismObject(projectOrganism)); }