public JsonResult UpdateOperators(string cowGroupID, string insemID, string feederID, string doctorID) { CowGroupBLL cBLL = new CowGroupBLL(); int gID = Int32.Parse(cowGroupID); int inID = Int32.Parse(insemID); int fID = Int32.Parse(feederID); int dID = Int32.Parse(doctorID); int i1 = cBLL.UpdateCowGroupInsemOperator(gID, inID); int i2 = cBLL.UpdateCowGroupFeeder(gID, fID); int i3 = cBLL.UpdateCowGroupDoctor(gID, dID); var result = new { Count = i1 + i2 + i3 }; return(Json(result, JsonRequestBehavior.AllowGet)); }