public ActionResult Add(string med_ID, string med_name, int cost_price, int sell_price, string unit, int num, string producer) { MedicineService medserve = new MedicineService(); if (medserve.Check(med_ID) == null) { medserve.AddNew(med_ID, med_name, cost_price, sell_price, unit, num, producer); } else { medserve.IncreaseMedicine(med_ID, num); } return(Json("true")); }