Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <bool> ApproveAsync(int id, int clientId, int userId) { if (!await _permissionManager.HasPermission(clientId, userId, Permission.CanEditLeave)) { throw new Exception("User has not permission to perform this operation"); } return(await _leaveRepository.ApproveAsync(id, userId)); }