예제 #1
0
        public async Task <IActionResult> SnimiPodatke(KorisnikDetaljiIzmjenaVM model)
        {
            var request  = _mapper.Map <KorisnikUpdateInfoRequest>(model);
            var response = await _restoranApi.LicneInformacije(request);

            if (response.IsSuccessStatusCode)
            {
                return(Redirect("/Korisnik/Home/Index"));
            }

            return(Redirect(nameof(PromjenaPodataka)));
        }