示例#1
0
 public IHttpActionResult AddExample(Core.Domain.Example example)
 {
     if (ModelState.IsValid)
     {
         _exampleService.AddExample(example);
         return(Ok());
     }
     else
     {
         return(InternalServerError());
     }
 }