public void DeleteRole(BllRole role) { try { _roleRepository.Delete(role.ToDalRole()); _unitOfWork.Commit(); } catch (ArgumentNullException e) { _logger.Error(e.Message); throw; } catch (DbException e) { _logger.Error(e.Message); throw; } catch (Exception e) { _logger.Error(e.Message); throw; } }
public override void CreateRole(string roleName) { BllRole role = new BllRole() {Name = roleName}; _roleService.CreateRole(role); }