//[AuthorizeUser(RoleModule.Warehouse, Function.View)] public JsonResult CheckWarehouseExist(string warehouse) { bool check = false; WarehouseViewModel wViewModel = new WarehouseViewModel(); try { check = _warehouseManager.CheckWarehouseExist(warehouse); Logger.Debug("Warhouse Controller CheckWarehouseExist"); } catch (Exception ex) { Logger.Error("Warhouse Controller - CheckWarehouseExist" + ex.Message); } return(Json(check, JsonRequestBehavior.AllowGet)); }