コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }