コード例 #1
0
 public string Post([FromBody] Location locationModel)
 {
     try
     {
         _context.Locations.Add(locationModel);
         _context.SaveChanges();
         return("true");
     }
     catch (Exception ex)
     {
         return(ex.Message.ToString());
     }
 }