Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{Html.RenderPartial("~/Views/Appoinment/GetALLAppoinmentMedicine.cshtml",
- new List<HMS.Models.AppointmentViewModel> { new HMS.Models.AppointmentViewModel() },
- new ViewDataDictionary { { "aid", Model.AppoinmentIDP} });}
- public ActionResult GetALLAppoinmentMedicine(int aid)
- {
- var idParam = new SqlParameter
- {
- ParameterName = "APPIDP",
- Value = aid
- };
- var SpResult = DB.Database.SqlQuery<AppointmentViewModel>("exec uspAppoinmentMedicine_GetAll @APPIDP", idParam).ToList<AppointmentViewModel>();
- IEnumerable<AppointmentViewModel> Result = SpResult.Select(s => new AppointmentViewModel
- {
- MadicineName = s.MadicineName,
- PotencyName = s.PotencyName,
- SizeofPills = s.SizeofPills,
- Dose = s.Dose,
- DoseType = s.DoseType,
- Repitation = s.Repitation,
- Quantity = s.Quantity,
- Duration = s.Duration
- });
- return View(Result);
- }
Add Comment
Please, Sign In to add comment