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); } }
public IActionResult Post([FromBody] Item value) { _repo.Create(value).Wait(); return(Ok()); }