Exemple #1
0
 public ApiResult <bool> Delete(Role model)
 {
     using (roleDal)
     {
         return(roleDal.Delete(model));
     }
 }
Exemple #2
0
 /// <summary>
 /// Deleted a role
 /// </summary>
 /// <param name="id"></param>
 /// <param name="objContex"></param>
 public static void Delete(short id, ModelUnibookContainer objContex)
 {
     try
     {
         RoleDal.Delete(id, objContex);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #3
0
 public bool Delete(Role role) => _roleDal.Delete(role);
 public void Delete([FromRoute] int id)
 {
     roleDal.Delete(id);
 }