Esempio n. 1
0
 public string GetPTTByID(int id)
 {
     MZPTT temp = new MZPTT();
     temp = context.MZPTT.Where(x => x.mzId == id).SingleOrDefault();
     return temp.pttmz;
 }
Esempio n. 2
0
 public string GetMZByID(int id)
 {
     int br = context.MZPTT.Where(x => x.mzId == id).Count();
     if (br > 0)
     {
         MZPTT temp = new MZPTT();
         temp = context.MZPTT.Where(x => x.mzId == id).SingleOrDefault();
         return temp.mz;
     }
     else
         return "Nema podataka";
 }
Esempio n. 3
0
 public string GetMZByCode(string kod)
 {
     MZPTT temp = new MZPTT();
     temp = context.MZPTT.Where(x => x.mzCode == kod).SingleOrDefault();
     return temp.mz;
 }
Esempio n. 4
0
 public string getmzCode(int id)
 {
     MZPTT temp = new MZPTT();
     temp = context.MZPTT.Where(x => x.mzId == id).SingleOrDefault();
     return temp.mzCode;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the MZPTT EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMZPTT(MZPTT mZPTT)
 {
     base.AddObject("MZPTT", mZPTT);
 }
 /// <summary>
 /// Create a new MZPTT object.
 /// </summary>
 /// <param name="mzId">Initial value of the mzId property.</param>
 public static MZPTT CreateMZPTT(global::System.Int32 mzId)
 {
     MZPTT mZPTT = new MZPTT();
     mZPTT.mzId = mzId;
     return mZPTT;
 }