Example #1
0
        //[ClaimRequirement(ClaimTypes.UserData, "korisnik_korisnik_dodavanje")]
        public async Task <IActionResult> Kreiraj([FromBody] KreirajKorisnikaRequestModel model)
        {
            var result = await korisnikService.Kreiraj(model);

            if (result.IsOk)
            {
                logService.Akcija(Core.Constants.LogLevel.Info,
                                  Core.Constants.LogKategorija.korisnik,
                                  Core.Constants.LogAkcija.korisnik_dodaj,
                                  "KorisnickoIme: " + result.Value.KorisnickoIme,
                                  authService.TrenutniKorisnik().UserName
                                  );
            }
            return(Convert(result));
        }