Ejemplo n.º 1
0
 public IActionResult Edit([FromBody] Location location)
 {
     try
     {
         return(Ok(_repository.EditLocation(location)));
     }
     catch (Exception)
     {
         return(BadRequest("Error occured while editing location"));
     }
 }