コード例 #1
0
        public AccountStatus GetById(int AccountStatusId)
        {
            var AccountStatus = AccountStatusRepository.GetById(AccountStatusId);

            if (AccountStatus == null)
            {
                throw new BadRequestException(ErrorMessages.GastoNoEncontrado);
            }

            return(AccountStatus);
        }
コード例 #2
0
        public AccountStatus GetById(int AccountStatusId)
        {
            var AccountStatus = AccountStatusRepository.GetById(AccountStatusId);

            if (AccountStatus == null)
            {
                throw new BadRequestException(ErrorMessages.GastoNoEncontrado);
            }
            else
            {
                //AccountStatus.PaymentTypeId = PaymentRepository.GetAll().FirstOrDefault(o => o.AccountStatus.Id == AccountStatusId).Id;
                return(AccountStatus);
            }
        }
コード例 #3
0
        public void DeleteAccountStatus(int AccountStatusId)
        {
            var AccountStatus = AccountStatusRepository.GetById(AccountStatusId);

            AccountStatusRepository.Delete(AccountStatus);
        }