示例#1
0
        public void Update(CellPhoneMaskDTO item)
        {
            var map = Mapper.Map <CellPhoneMask>(item);

            Database.CellPhoneMasks.Update(map);
            Database.Save();
        }
 public ActionResult Edit(CellPhoneMaskDTO cellPhoneMask)
 {
     if (!ModelState.IsValid)
     {
         return(View("ExeptionView", "SysTransactions"));
     }
     cellPhoneMaskService.Update(cellPhoneMask);
     return(RedirectToAction(nameof(Index)));
 }