Beispiel #1
0
 public async Task <bool> Update(ApprovedDto approvedDto)
 {
     try
     {
         return(await db.Update(Mapper.Map <DataAccess.Ado.Models.Entitys.Approved>(approvedDto)));
     }
     catch { return(false); }
 }
Beispiel #2
0
        public async Task <IEnumerable <ApprovedDto> > Get(ApprovedDto approvedDto)
        {
            var approved = await db.Get(Mapper.Map <DataAccess.Ado.Models.Entitys.Approved>(approvedDto));

            return(Mapper.Map <IEnumerable <ApprovedDto> >(approved));
        }