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