예제 #1
0
		public IHttpActionResult CheckName(string storeId, string name, string language, string id = "")
		{
            base.CheckCurrentUserHasPermissionForObjects(ContentPredefinedPermissions.Read, new ContentScopeObject { StoreId = storeId });

            var retVal = _menuService.CheckList(storeId, name, language, id);
			var response = new CheckNameResult { Result = retVal };
			return Ok(response);
		}
예제 #2
0
		public IHttpActionResult CheckName(string storeId, [FromUri]string pageName, [FromUri]string language)
		{
			var result = _pagesService.CheckList(storeId, pageName, language);
			var response = new CheckNameResult { Result = result };
			return Ok(response);
		}
예제 #3
0
 public IHttpActionResult CheckName(string storeId, [FromUri]string pageName, [FromUri]string language)
 {
     CheckCurrentUserHasPermissionForObjects(ContentPredefinedPermissions.Read, new ContentScopeObject { StoreId = storeId });
     var response = new CheckNameResult { Result = true };
     return Ok(response);
 }
예제 #4
0
		public IHttpActionResult CheckName(string storeId, string name, string language, string id = "")
		{
			var retVal = _menuService.CheckList(storeId, name, language, id);
			var response = new CheckNameResult { Result = retVal };
			return Ok(response);
		}