public async Task Create(TodoError todoError) { using (var db = this.context) { await db.Errors.AddAsync(todoError); } }
public async Task Create(TodoError todoError) { todoError.Time = DateTime.Now; await todoErrorDao.Create(todoError); }
/// <summary> /// Сохраняем ошибки которые произошли /// </summary> /// <param name="error"></param> /// <returns></returns> public async Task Error(TodoError error) => await todoErrorService.Create(error);