public ResponseModel GetGlCombo() { var data = _aGlAccount.SelectAll().Where(x => x.ParentId != null).Select(a => new { id = a.A_GlAccountId, text = a.Name + "(" + a.Code + ")" }).ToList(); var aaa = data.ToList(); return(_aModel.Respons(data)); }
public ResponseModel A_GlAccountCombo() { var data = _aGlAccount.SelectAll().Where(gl => gl.TransactionAllowed == true).Select(a => new { id = a.A_GlAccountId, text = a.Name + "(" + a.Code + ")" }).ToList(); //var aaa = data.ToList(); return(_aModel.Respons(data)); }