コード例 #1
0
        public List <vmBranch> GetBranchDetails(int?pageNumber, int?pageSize, int?IsPaging, int?CompanyId)
        {
            objSystemCommonDll = new SystemCommonDDL();
            List <vmBranch> _objBranchs = null;

            try
            {
                _objBranchs = objSystemCommonDll.GetBranchDetails(pageNumber, pageSize, IsPaging, CompanyId).ToList();
            }
            catch (Exception e)
            {
                _objBranchs = null;
                e.ToString();
            }
            return(_objBranchs);
        }
コード例 #2
0
        public IHttpActionResult GetDepartmentDetails(object[] data)
        {
            objSystemCommonDll = new SystemCommonDDL();
            IEnumerable <vmBranch> ListDeptDetail = null;
            vmCmnParameters        objcmnParam    = JsonConvert.DeserializeObject <vmCmnParameters>(data[0].ToString());

            try
            {
                ListDeptDetail = objSystemCommonDll.GetBranchDetails(objcmnParam.pageNumber, objcmnParam.pageSize, objcmnParam.IsPaging, objcmnParam.loggedCompany).ToList();
            }
            catch (Exception e)
            {
                e.ToString();
            }

            return(Json(new
            {
                ListDeptDetail
            }));
            //return objDOMaster.ToList();
        }