Esempio n. 1
0
 public bool Update(AdminUserDto entity)
 {
     try
     {
         return(rep.Update(entity.MapTo <AdminUser>()));
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 2
0
 public AdminUserDto Create(AdminUserDto entity)
 {
     try
     {
         return(rep.Create(entity.MapTo <AdminUser>()).MapTo <AdminUserDto>());
     }
     catch (Exception)
     {
         throw;
     }
 }