public async Task <IActionResult> GetStoreUser([FromQuery] GetStoreUser get) { try { var result = await Mediator.Send(get); return(Ok(result)); } catch (Exception e) { return(BadRequestWithMessage(e.Message)); } }
public static Task <StoreUserModel> GetStoreUser(this IFlurlClient http, GetStoreUser model) { return(http.Request("api", "storeuser", "user") .SetQueryParams(model) .GetJsonAsync <StoreUserModel>()); }