//get branch data by id public JsonResult GetBranchDetailData(BranchDetailsUI branchDetailsUI) { BranchDetailsData branchDetailsData = new BranchDetailsData(); var Data = branchDetailsData.GetBranchDataByID(branchDetailsUI); return(new JsonResult { Data = Data, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public JsonResult GetActivityBranchData() { BranchDetailsData branchDetailsData = new BranchDetailsData(); var Data = branchDetailsData.GetBranchData(); return(new JsonResult { Data = Data, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
//add batch data public JsonResult AddNewBrach(BranchDetailsUI Model) { BranchDetailsData obj = new BranchDetailsData(); var Data = obj.AddBranches(Model); //var Data = RepoData.AddBranches(Model); return(new JsonResult { Data = Data, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }