Example #1
0
 public IHttpActionResult Post(DeleteRec delRec)
 {
     if (delRec.RecType == null)
     {
         service.DeleteChargeGroup(delRec.CgcrId);
     }
     else if (delRec.RecType == "D")
     {
         service.DeleteDrugRec(delRec.RecId);
     }
     else if (delRec.RecType == "M")
     {
         service.DeleteMaterialRec(delRec.RecId);
     }
     else if (delRec.RecType == "S")
     {
         service.DeleteServiceRec(delRec.RecId);
     }
     return(Ok(""));
 }