Exemplo n.º 1
0
        public JsonResult SaveInseminationOperator(int cowGroupID, int insemOperatorID)
        {
            var result = new
            {
                result = bllCowGroup.UpdateCowGroupInsemOperator(cowGroupID, insemOperatorID)
            };

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        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));
        }