public ActionResult FillBranch(int Compid) { //string strCompCode = Convert.ToString(Compid); List <BranchItem> lstBranch = new List <BranchItem>(); BranchItem objBranchItem = new BranchItem(); BranchService objBranchS = new BranchService(); lstBranch = objBranchS.GetBranchByComp(Compid); objBranchItem.ListBranch = new List <BranchItem>(); //objBranchItem.ListBranch.Add(new BranchItem { id = 0, BranchName = "--Select Branch--" }); objBranchItem.ListBranch.AddRange(lstBranch); //var e = new { BranchItem = objBranchItem.ListBranch, EmployeeItem = objBranchItem.ListBranch }; return(Json(objBranchItem.ListBranch, JsonRequestBehavior.AllowGet)); }