Пример #1
0
 // POST: api/Bills
 public IHttpActionResult Post([FromBody] Bill bill)
 {
     try
     {
         return(Ok(BillsRepository.Create(bill)));
     }
     catch
     {
         return(BadRequest());
     }
 }