Пример #1
0
 public async Task CreateAsync(Person.Models.Person item) => await sqlContext.Persons.AddAsync(item);
Пример #2
0
 public Task UpdateAsync(Person.Models.Person item) =>
 Task.FromResult(sqlContext.Entry(item).State = EntityState.Modified);
Пример #3
0
        public async Task UpdateAsync(Person.Models.Person person)
        {
            await unitOfWork.Persons.UpdateAsync(person);

            await unitOfWork.Persons.SaveAsync();
        }