Example #1
0
 public ActionResult PostorderAdmin(AdminOrderModel model)
 {
     using (ProjectEntities1 db = new ProjectEntities1())
     {
         if (model.SupplierId > 0)
         {
             string assign = "Assigned";
             db.InsertDrugDelivery(model.OrderId, model.SupplierId);
             db.UpdateAssign(model.OrderId, assign);
             return(Json("Assigned"));
         }
         else
         {
             return(Json("Error"));
         }
     }
 }