Skip to content

Instantly share code, notes, and snippets.

View b-babic's full-sized avatar
🎯
Focusing

Benjamin Babic b-babic

🎯
Focusing
  • Progressive studio
View GitHub Profile
@b-babic
b-babic / test.txt
Last active September 8, 2022 07:32
No
CreateMap<Database.ProizvodKomentari, Model.ProizvodKomentari>()
.ForMember(x=>x.KorisnikImePrezime, m=>m.MapFrom(c=>c.Korisnik.Ime+" "+ c.Korisnik.Prezime))
.ForMember(x=>x.ProizvodNaziv, m=>m.MapFrom(c=>c.Proizvod.Naziv))
.ReverseMap();
CreateMap<ProizvodKomentariUpsert, Database.ProizvodKomentari>().ReverseMap();
// Validation
bool correct = true;
if(comboBox1.SelectedIndex == -1)
{