// GET: api/Userstories/5 public Userstories Get(int id) { EmpDBContext db = new EmpDBContext(); Userstories pr = new Userstories(); pr.userstoryid = id; return(UserstoryRepo.SearchUserById(pr, db)); }
// DELETE: api/Userstories/5 public void Delete(int id) { UserstoryRepo.DeleteallUserstories(id); }
// PUT: api/Userstories/5 public void Put(int id, Userstories value) { value.userstoryid = id; UserstoryRepo.EditUserstories(value); }
// POST: api/Userstories public void Post(Userstories usr) { UserstoryRepo.CreateNewUserstories(usr); }