Beispiel #1
0
        public ActionResult SelectProgramProducer(long programId)
        {
            var viewModel = new SelectProgramProducerViewModel();

            viewModel.ProgramId = programId;
            return(PartialView(viewModel));
        }
Beispiel #2
0
 public ActionResult SelectProgramProducer(SelectProgramProducerViewModel viewModel)
 {
     if (ModelState.IsValid)
     {
         CRCDataAccess.SaveProgramProducer(viewModel.ProgramId, viewModel.ProducerId, CRCUser.UserId);
         return(Json(true));
     }
     else
     {
         return(PartialView(viewModel));
     }
 }