示例#1
0
 public IActionResult AddCat([FromBody] Cat[] cats)
 {
     try
     {
         _catService.AddCats(cats);
         return(Created());
     }
     catch
     {
         return(InternalError());
     }
 }