public ActionResult <Domain> CreateDomain([FromBody] Domain domain)
        {
            Domain res = _service.CreateDomain(domain);

            if (res == null)
            {
                return(BadRequest(new { message = " cannot create domain " }));
            }
            return(Ok(res));
        }