public bool CheckForm(AuthorizationEntity authorization)
 {
     var auth = unitOfWork.AuthorizationRepository.Get(x => x.Email == authorization.Email);
     if (auth != null && auth.Password == authorization.Password && auth.Confirm == true)
         return true;
     return false;
 }
 public void UpdateAuthorization(AuthorizationEntity authorizationEntity)
 {
     unitOfWork.AuthorizationRepository.Update(authorizationEntity.ToAuthorization());
 }
 public void DeleteAuthorization(AuthorizationEntity authorizationEntity)
 {
     unitOfWork.AuthorizationRepository.Delete(authorizationEntity.ToAuthorization());
     unitOfWork.Save();
 }