private T ActionMove(object sender, EditFormActionType actionType) { T row = sender as T; using (var useData = new UseData <T>(User, FormName, MasterKey, row)) { return(useData.FindByMove(actionType)); } }
public virtual List <T> ListByCompanyCode(string companyCode) { using (var useData = new UseData <T>()) { return(typeof(T) == typeof(tbl_Company) ? useData.List() : useData.List(x => x.GetValue("CompanyCode") != companyCode)); } }