예제 #1
0
 public Task Add(ZabotaLicenses model)
 {
     _appDBContext.Licenses.Add(new Entities.Licenses
     {
         Id   = model.Id,
         Name = model.Name
     });
     return(_appDBContext.SaveChangesAsync());
 }
예제 #2
0
        public async Task <bool> AddLicense(ZabotaLicenses model)
        {
            await _licensesRepository.Add(model);

            return(true);
        }