public async Task <IActionResult> UpdateOpenStore([FromForm] UpdateOpenStore update) { try { await Mediator.Send(update); return(Ok()); } catch (Exception e) { return(BadRequestWithMessage(e.Message)); } }
public static Task UpdateOpenStore(this IFlurlClient http, UpdateOpenStore model) { return(http.Request("api", "store", "open") .PostUrlEncodedAsync(model)); }