public IHttpActionResult AdvertiseServer(ServerModel model, string endPoint) { if (model.IsNotValid()) { return(BadRequest()); } model.EndPoint = endPoint; _serverService.UpsertServer(model); return(Ok()); }