public void CreateUstories(UserStories user) { display d = new display(); d.userstories.Add(user); d.SaveChanges(); }
public void CreateComment(Managercomment comment) { display d = new display(); d.comments.Add(comment); d.SaveChanges(); }
public void CreateProject(Project project) { display d = new display(); d.projects.Add(project); d.SaveChanges(); }
public void CreateEmployee(Employee employee) { display d = new display(); d.employees.Add(employee); d.SaveChanges(); }
// POST: api/employee public void Post(Employee value) { display db = new display(); db.employees.Add(value); db.SaveChanges(); }
public void CreateTask(Task task) { display d = new display(); d.tasks.Add(task); d.SaveChanges(); }
public void Delete(int id) { display d = new display(); UserStories us = SearchById(id, d); d.userstories.Remove(us); d.SaveChanges(); }
public void Delete(int id) { display d = new display(); Project pr = SearchById(id, d); d.projects.Remove(pr); d.SaveChanges(); }
public void Delete(int id) { display d = new display(); Managercomment mn = SearchById(id, d); d.comments.Remove(mn); d.SaveChanges(); }
public void Delete(int id) { display d = new display(); Employee em = SearchById(id, d); d.employees.Remove(em); d.SaveChanges(); }
public void Delete(int id) { display d = new display(); Task tk = SearchById(id, d); d.tasks.Remove(tk); d.SaveChanges(); }
public void Edit(UserStories ua, int id) { display d = new display(); UserStories us = SearchById(id, d); us.Story = ua.Story; us.ProId = ua.ProId; d.SaveChanges(); }
public void Edit(Managercomment m, int id) { display d = new display(); Managercomment man = SearchById(id, d); man.comment = m.comment; man.protaskId = m.protaskId; d.SaveChanges(); }
public void Edit(Project p, int id) { display d = new display(); Project pr = SearchById(id, d); pr.Pname = p.Pname; pr.StartDate = p.StartDate; pr.EndDate = p.EndDate; pr.Cname = p.Cname; d.SaveChanges(); }
public void Edit(Task t, int id) { display d = new display(); Task ta = SearchById(id, d); ta.AssignedTo = t.AssignedTo; ta.EndDate = t.EndDate; ta.StartDate = t.StartDate; ta.Completion = t.Completion; ta.UserStoryId = t.UserStoryId; d.SaveChanges(); }
public void Edit(Employee e, int id) { display d = new display(); Employee emp = SearchById(id, d); emp.Ename = e.Ename; emp.Designation = e.Designation; emp.Mid = e.Mid; emp.Contactno = e.Contactno; emp.EmailId = e.EmailId; emp.Skillsets = e.Skillsets; d.SaveChanges(); }