public ApiResult <bool> Delete(Role model) { using (roleDal) { return(roleDal.Delete(model)); } }
/// <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; } }
public bool Delete(Role role) => _roleDal.Delete(role);
public void Delete([FromRoute] int id) { roleDal.Delete(id); }