Esempio n. 1
0
 public Result AddException(Exception e)
 {
     try
     {
         if (!_storage.IsWorking)
         {
             return(Result.Success);
         }
         var item = Log.Generate(e);
         return(_storage.Create(item).Result);
     }
     catch (Exception)
     {
         Debug.WriteLine(e);
         return(Result.Failed);
     }
 }
Esempio n. 2
0
 public IActionResult Post([FromBody] Item value)
 {
     _repo.Create(value).Wait();
     return(Ok());
 }