public PayListFormPresenter(PayListForm view) { this.view = view; payTypeService = new PayTypeService(); accountService = new AccountService(); init(); }
public ActionResult GetPayTypeData() { var payTypeList = PayTypeService.LoadEntities(p => true); var temp = from p in payTypeList select new { id = p.Id, text = p.PayTypeName }; return(Json(temp, JsonRequestBehavior.AllowGet)); }