Пример #1
0
 ClientValidations(long idClient, decimal capitalValue, ref InfoClientDto infoClientDto)
 {
     infoClientDto = _clientProvider.GetInfoClient(idClient).Result;
     if (infoClientDto == null)
     {
         return(false, HttpStatusCode.BadRequest, ClientNoExistMsg);
     }
     if (infoClientDto.AvailableSpace < capitalValue)
     {
         return(false, HttpStatusCode.PreconditionFailed, NoAvalibleSpaceMsg);
     }
     return(true, HttpStatusCode.OK, "");
 }