Example #1
0
        public ActionResult AddEditProducerContact(long?producerId)
        {
            var viewModel = new AddEditProducerContactViewModel();

            if (producerId.HasValue)
            {
                var drProducersContacts = CRCDataAccess.GetProducer(producerId.Value);
                drProducersContacts.MapTo(viewModel);

                viewModel.EnabledInd = !(drProducersContacts["DisabledDate"] is DateTime);
            }

            return(PartialView(viewModel));
        }