public ActionResult Delete(int id) { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new LeadSourceService(userId); var model = service.GetLeadSourceById(id); return(View(model)); }
public ActionResult LeadSourceEdit(int id) { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new LeadSourceService(userId); var detail = service.GetLeadSourceById(id); var model = new LeadSourceEdit { SourceTypeID = detail.SourceTypeID, Source = detail.Source, Description = detail.Description }; return(View(model)); }