public bool ChangePassword(int id, string oldPassword, string password) { logger.Info("BLL: changing users pasword process started"); try { password = ComputeSHA256Hash($"{password}{id}"); oldPassword = ComputeSHA256Hash($"{oldPassword}{id}"); bool result = daoUsers.ChangePassword(id, oldPassword, password); logger.Info("BLL: changing users pasword process done"); return(result); } catch (StorageException e) { logger.Error("BLL: changing users pasword process failed!"); throw new Exception("error while changing password of user process", e); } catch (Exception e) { logger.Error("BLL: changing users pasword process failed!"); throw new Exception("error while changing password of user process", e); } }