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); }
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(); }