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