public string GetPTTByID(int id) { MZPTT temp = new MZPTT(); temp = context.MZPTT.Where(x => x.mzId == id).SingleOrDefault(); return temp.pttmz; }
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"; }
public string GetMZByCode(string kod) { MZPTT temp = new MZPTT(); temp = context.MZPTT.Where(x => x.mzCode == kod).SingleOrDefault(); return temp.mz; }
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<T> 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; }