public async Task <ActionResult> Post(string name, long from) { var e = await _Idxr.WriteAsync(name, from, Request.Body); if (e == null) { e = await _Idxr.UpdateIndexAsync(name); } if (e == null && _Idxr.TryGetIndex(name, out var idx)) { return(Ok(idx)); } else { return(BadRequest(e)); } }