예제 #1
0
 public IActionResult Post([FromBody] Customer model)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest("Invalid Data"));
     }
     else
     {
         if (r.AddData(model) == true)
         {
             return(Ok());
         }
         else
         {
             return(NotFound());
         }
     }
 }