public bool DeleteTrue(iPow.Infrastructure.Data.DataSys.Sys_Roles entity, iPow.Infrastructure.Data.DataSys.Sys_AdminUser operUser) { var res = false; if (entity != null) { try { roleRespoitory.Delete(entity); roleRespoitory.Uow.Commit(); res = true; } catch (Exception ex) { } } return(res); }
public void Delete(iPow.Infrastructure.Data.DataSys.Sys_Roles role) { roleRespoitory.Delete(role); roleRespoitory.Uow.Commit(); }