Exemplo n.º 1
0
        public void Add(AdmProfileDto request)
        {
            var user = context
                       .AdmProfileRepository
                       .SingleOrDefault(x => x.Id == request.AdmProfileId);

            context.AdmProfileRepository.Update(user);
            context.Commit();
        }
Exemplo n.º 2
0
        public PartialViewResult Delete(int Id)
        {
            AdmProfileDto profile = serviceAdmProfile.GetItem(Id);

            ViewBag.Id         = profile.AdmProfileId;
            ViewBag.Title      = profile.Name;
            ViewBag.Controller = "AdmProfile";

            return(PartialView("_Delete"));
        }
Exemplo n.º 3
0
 public void Edit(AdmProfileDto request)
 {
     context.AdmProfileRepository.Update(Mapper.Map <AdmProfileDto, AdmProfile>(request));
     context.Commit();
 }
Exemplo n.º 4
0
        public ActionResult Edit(int Id)
        {
            AdmProfileDto profile = serviceAdmProfile.GetItem(Id);

            return(View(Mapper.Map <AdmProfileDto, AdmProfileFormViewModel>(profile)));
        }