示例#1
0
        // Validalsi Nama Batch Tidak Boleh Sama
        public ActionResult CheckName(string name = "")
        {
            BatchViewModel data   = BatchRepo.CheckName(name);
            ResponseResult result = new ResponseResult();

            if (data.name != null)
            {
                result.Success = false;
            }
            return(Json(new
            {
                success = result.Success
            }, JsonRequestBehavior.AllowGet));
        }