Esempio n. 1
0
 private void FillSelf(ContractorAccess model)
 {
     Id       = model.Id;
     Name     = model.Name;
     AdSid    = model.AdSid;
     Login    = model.Login;
     Password = model.Password;
     OrgName  = model.OrgName;
     City     = model.City;
     OrgSid   = model.OrgSid;
     Email    = model.Email;
 }
        public ActionResult New(ContractorAccess model)
        {
            if (!CurUser.HasAccess(AdGroup.ServiceClaimContractorAccess)) RedirectToAction("AccessDenied", "Error");
            try
            {
                ResponseMessage responseMessage;
                bool complete = model.Save(out responseMessage);
                if (!complete) throw new Exception(responseMessage.ErrorMessage);

                return RedirectToAction("List");
            }
            catch (Exception ex)
            {
                TempData["error"] = ex.Message;
                return View("New", model);
            }
        }
Esempio n. 3
0
 private void FillSelf(ContractorAccess model)
 {
     Id = model.Id;
     Name = model.Name;
     AdSid = model.AdSid;
     Login = model.Login;
     Password = model.Password;
     OrgName = model.OrgName;
     City = model.City;
     OrgSid = model.OrgSid;
     Email = model.Email;
 }
 public ActionResult AccessSheet(int id)
 {
     var model = new ContractorAccess(id);
     return View(model);
 }