/// <summary> /// Maps dto to model /// </summary> /// <param name="dto">The dto.</param> /// <returns> /// Returns mapped dto to model /// </returns> public Nabavljac VMToModel(NabavljacVM dto) { var model = new Nabavljac { NabavljacId = dto.NabavljacId, Naziv = dto.Naziv, Adresa = dto.Adresa, Iban = dto.Iban }; return(model); }
/// <summary> /// Models to dto. /// </summary> /// <param name="model">The model.</param> /// <returns> /// Returns mapped model to dto /// </returns> public NabavljacVM ModelToVM(Nabavljac model) { var dto = new NabavljacVM { NabavljacId = model.NabavljacId, Naziv = model.Naziv, Adresa = model.Adresa, Iban = model.Iban }; return(dto); }