public IActionResult SpremiEditClan(AdministracijaEditClanaVM model) { if (!ModelState.IsValid) { model.spol = helper.GenereateSpolList(); return(View("EditClan", model)); } Korisnik clan = clanService.ClanFind(model.ID); clan.ID = model.ID; clan.BrojTelefona = model.BrojTelefona; clan.DatumRodenja = model.DatumRodenja; clan.Ime = model.Ime; clan.Prezime = model.Prezime; clan.Spol = model.Spol; clan.JMBG = model.JMBG; clanService.ClanUpdate(clan); return(RedirectToAction("ClanDetalji", new { id = clan.ID })); }