public ActionResult IsUniqueCode(string Code, string initialCode) { var isUnique = branchDa.IsUniqueCode(Code, initialCode); return(Json(isUnique, JsonRequestBehavior.AllowGet)); }