// POST api/login public HttpResponseMessage Post(RequirementNameModel model) { try { using (var ctx = new Entities()) { ctx.ArchiveRequirement(model.CellID, model.Tag); ctx.SaveChanges(); return new HttpResponseMessage(HttpStatusCode.OK); } } catch { return new HttpResponseMessage(HttpStatusCode.InternalServerError); } }
public ActionResult CancelAndArchive(string tag) { int cellID = RouteData.Values["cell"].GetCellID(); RequirementNameModel model = new RequirementNameModel(cellID, tag); return View(model); }