public async Task <String> PostAsync([FromBody] string value) { string NewInsertionID = "0"; try { Documents newDoc = JsonConvert.DeserializeObject <Documents>(value); NewInsertionID = await _DocsRepo.CreateAsync(newDoc); } catch (Exception ex) { var logger = _loggerFactory.CreateLogger("internal_error_log"); logger.LogInformation("Problem happened in making new vendor with message" + ex.Message); } return(NewInsertionID); }