public ActionResult Delete(int id) { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new LeadStatusService(userId); var model = service.GetLeadStatusById(id); return(View(model)); }
public ActionResult Edit(int id) { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new LeadStatusService(userId); var detail = service.GetLeadStatusById(id); var model = new LeadStatusEdit { StatusTypeID = detail.StatusTypeID, Status = detail.Status, Description = detail.Description }; return(View(model)); }