コード例 #1
0
 public IHttpActionResult Post(CommonRec Request)
 {
     if (Request.RecType == "D")
     {
         service.SaveDrugRec(Request.drugRec);
     }
     else if (Request.RecType == "M")
     {
         service.SaveMaterialRec(Request.materialRec);
     }
     else if (Request.RecType == "S")
     {
         service.SaveServiceRec(Request.serviceRec);
     }
     return(Ok(""));
 }