Пример #1
0
        public IHttpActionResult DeleteRoles([FromUri(Name = "ids")] string[] roleIds)
        {
            if (roleIds != null)
            {
                foreach (var roleId in roleIds)
                {
                    _roleService.DeleteRole(roleId);
                }
            }

            return(Ok());
        }
Пример #2
0
        public IHttpActionResult DeleteRoles([FromUri(Name = "ids")] string[] roleIds)
        {
            if (roleIds != null)
            {
                foreach (var roleId in roleIds)
                {
                    _roleService.DeleteRole(roleId);
                }
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
Пример #3
0
        public virtual ActionResult Delete(long id)
        {
            var result = _roleManagementService.DeleteRole(id);

            return(Json(new { IsError = !result.Item1, Message = result.Item2 }));
        }