public IHttpActionResult Post(BatchManagement batch)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            BatchService batchService = new BatchService();

            return(Created(batchService.AddItem(batch)));
        }
Esempio n. 2
0
 public ActionResult Post(Batch batch)
 {
     batchservice.AddItem(batch);
     return(View());
 }