public T GetRefreshedEntity <T>(IQueryable <T> entities, RefreshRowInfo info) where T : class { object[] keyValue = info.rowInfo.GetPKValues(this._dataHelper); object dbEntity = this.FindEntity(entities, info.rowInfo, keyValue); return((T)dbEntity); }
public static T GetRefreshedEntityDataHelper <T>(IQueryable <T> entities, RefreshRowInfo info) where T : class { object[] keyValue; object dbEntity = QueryHelper.FindEntity(entities, info.rowInfo, out keyValue); return((T)dbEntity); }
public Customer RefreshCustomer(RefreshRowInfo refreshInfo) { return(QueryHelper.GetRefreshedEntityDataHelper <Customer>(this.DB.Customers, refreshInfo)); }
public Product RefreshProduct(RefreshRowInfo refreshInfo) { return(QueryHelper.GetRefreshedEntityDataHelper <Product>(this.DB.Products, refreshInfo)); }
public ActionResult RefreshItem(RefreshRowInfo getInfo) { var res = this.DomainService.ServiceRefreshRow(getInfo); return(Json(res)); }