public async Task <IActionResult> RunAsync( [HttpTrigger(AuthorizationLevel.Function, "post", Route = "{environment}")] ImportMapRow row, string environment, ILogger log) { log.LogInformation("[AddImportMapRow]"); if (row == null || !row.IsValid()) { log.LogError("Body was empty or invalid"); return(new ContentResult { StatusCode = StatusCodes.Status400BadRequest, Content = "Body should contain the following properties: \n -referenceName \n -referenceUrl" }); } var dto = row.ToRowEntity(environment); await _tableService.UpsertRowAsync(dto); return(new OkResult()); }