public IActionResult Put([FromBody] Permission permission)
        {
            if (permission == null)
            {
                return(BadRequest());
            }
            var updatedPermission = _permissionBusiness.Update(permission);

            if (updatedPermission == null)
            {
                return(BadRequest());
            }
            return(new ObjectResult(_permissionBusiness.Update(permission)));
        }
        public async Task <IActionResult> UpdatePermission(PermissionDTO permissionDTO)
        {
            var permission = _mapper.Map <Permission>(permissionDTO);

            await _permissionBusiness.Update(permission);

            return(Ok(permission));
        }