Esempio n. 1
0
 public IHttpActionResult PostPoint(Point m)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest(ModelState));
     }
     psvc.CreatePoint(m);
     uow.Save();
     return(CreatedAtRoute("DefaultApi", new { id = m.ID }, PointDto.FromPoint(m)));
 }