Пример #1
0
 public string VratiZaIzmenu()
 {
     if (!string.IsNullOrWhiteSpace(IzvestajOpis))
     {
         return($"izvestajOpis = '{IzvestajOpis}', izvestajDatum = Date()");
     }
     else
     {
         return($"timID = {TimID}, salaID = {SalaID}, terminOd = '{TerminOd.ToString(format)}'," +
                $"terminDo = '{TerminDo.ToString(format)}', status = {(int)Status}");
     }
 }
Пример #2
0
 public string VratiVrednostiZaInsert()
 {
     return($"{TimID}, {SalaID},'{TerminOd.ToString(format)}', '{TerminDo.ToString(format)}', {(int)Status}, '', null");
 }
Пример #3
0
 //METODY PUBLICZNE
 public override string ToString()
 {
     return($"{NrOferty} {Hotel} {TerminOd.ToString("dd-MM-yyyy")} {TerminDo.ToString("dd-MM-yyyy")}");
 }