Esempio n. 1
0
 public HttpResponseMessage Post(BootcampLocation model)
 {
     if (base.ModelState.IsValid)
     {
         _bootcampLocationsRepo.AddBootcampLocation(model);
         return(new HttpResponseMessage(HttpStatusCode.OK));
     }
     return(base.Request.CreateErrorResponse(HttpStatusCode.BadRequest, base.ModelState));
 }
Esempio n. 2
0
 public void AddBootcampTest()
 {
     Assert.AreEqual(_locationsRepo.AddBootcampLocation(mockRepo.MockBootcampLocation).BootcampLocationID, 4);
 }