Exemple #1
0
        //[AuthorizeUser(RoleModule.Branch, Function.View)]
        public JsonResult CheckBranchExist(string branch)
        {
            bool check = false;

            BranchViewModel bViewModel = new BranchViewModel();

            try
            {
                check = _branchManager.CheckBranchNameExist(branch);

                Logger.Debug("Branch Controller CheckBranchExist");
            }
            catch (Exception ex)
            {
                Logger.Error("Branch Controller - CheckBranchExist" + ex.Message);
            }

            return(Json(check, JsonRequestBehavior.AllowGet));
        }