Пример #1
0
 public IHttpActionResult AdvertiseServer(ServerModel model, string endPoint)
 {
     if (model.IsNotValid())
     {
         return(BadRequest());
     }
     model.EndPoint = endPoint;
     _serverService.UpsertServer(model);
     return(Ok());
 }