public PartialViewResult ActivetedReceivableList() { try { // int companyId = Convert.ToInt32(Session["CompanyId"]); int branchId = Convert.ToInt32(Session["BranchId"]); List <ViewReceivableDetails> collection; //if (branchId == 9) //{ // collection= _iAccountsManager.GetActivetedReceivableListByCompany(companyId).ToList(); //} //else //{ // collection = _iAccountsManager.GetActivetedReceivableListByBranch(branchId).ToList(); //} collection = _iAccountsManager.GetActivetedReceivableListByBranch(branchId).ToList(); return(PartialView("_ViewActivatedReceivableListPartialPage", collection)); } catch (Exception exception) { Log.WriteErrorLog(exception); return(PartialView("_ErrorPartial", exception)); } }