Exemplo n.º 1
0
 public async Task <DonationMoney> Create(DonationMoney DonationMoney)
 {
     if (await this.IsListCLinton(DonationMoney))
     {
         return(null);
     }
     return(await this.asyncRepository.CreateAsync(DonationMoney));
 }
Exemplo n.º 2
0
        private async Task <bool> IsListCLinton(DonationMoney donationMoney)
        {
            var specification = new DonationMoneySpecification(donationMoney.TypeIdentificationId, donationMoney.Identification);
            var result        = await this.asyncRepository.FirstOrDefaultAsync(specification);

            if (result != null)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 3
0
 public async Task <DonationMoney> Update(DonationMoney DonationMoney)
 {
     return(await this.asyncRepository.UpdateAsync(DonationMoney));
 }
 public async Task <DonationMoney> UpdateDonationMoney(DonationMoney DonationMoney)
 {
     return(await this._donationMoneyService.Update(DonationMoney));
 }
 public async Task <DonationMoney> CreateDonationMoney([FromBody] DonationMoney DonationMoney)
 {
     return(await this._donationMoneyService.Create(DonationMoney));
 }