Esempio n. 1
0
 public ActionResult Post([FromBody] BusinessModel.Address address)
 {
     if (addressRepository.Create(address))
     {
         return(Ok());
     }
     else
     {
         return(NotFound());
     }
 }
Esempio n. 2
0
 public ActionResult Put(int id, [FromBody] BusinessModel.Address address)
 {
     address.Id = id;
     if (addressRepository.Update(address))
     {
         return(Ok());
     }
     else
     {
         return(NotFound());
     }
 }