public static TipoviKuhinje_Result GetTipoviKuhinjeResultInstance(TipoviKuhinje obj) { return(obj == null ? null : new TipoviKuhinje_Result { TipKuhinjeId = obj.TipKuhinjeId, Naziv = obj.Naziv, Opis = obj.Opis }); }
public async Task <ActionResult <TipoviKuhinje> > PostTipKuhinje(TipoviKuhinje obj) { if (obj == null) { return(BadRequest()); } context.TipoviKuhinje.Add(obj); await context.SaveChangesAsync(); return(Ok(obj)); }