//Get Single Record public static eVideo GetSingleRecordById() { eVideo eobj = new eVideo(); using (OneFineRateEntities db = new OneFineRateEntities()) { var dbobj = db.tblVideoUrlMs.SingleOrDefault(); if (dbobj != null) { eobj = (eVideo)OneFineRateAppUtil.clsUtils.ConvertToObject(dbobj, eobj); } } return(eobj); }
//Get Single Record public static string GetVideoURL() { string URL = ""; eVideo eobj = new eVideo(); using (OneFineRateEntities db = new OneFineRateEntities()) { var dbobj = db.tblVideoUrlMs.SingleOrDefault(); if (dbobj != null) { URL = dbobj.sImgUrl; } } return(URL); }
public static string toString(eVideo v) { return(v.ToString()); }