Esempio n. 1
0
 public async Task <int> Delete(MS_PIC entity)
 {
     Repo.Delete(entity);
     return(await UnitOfWork.SaveChangesAsync());
 }
Esempio n. 2
0
        public async Task <int> Add(MS_PIC entity)
        {
            await Repo.Add(entity);

            return(await UnitOfWork.SaveChangesAsync());
        }