public IActionResult PostEndpoint(EndpointVm endpoint)
        {
            if (_endpointService.AddEndpoint(_mapper.Map <EndpointVm, Endpoint>(endpoint), out var finalEndpoint))
            {
                return(Created(
                           new Uri(UrlHelperClass.CreateEndpointUrl(Request.GetEncodedUrl(), endpoint.EndpointName)),
                           finalEndpoint));
            }

            return(BadRequest(new ValidationErrorVm()
            {
                CustomError = new CustomErrorVm()
                {
                    CustomErrorMessage =
                        $"Given endpoint name is already assigned. Check this endpoint configuration at {UrlHelperClass.CreateEndpointUrl(Request.GetEncodedUrl(), endpoint.EndpointName)}"
                }
            }));
        }