public virtual ActionResult ControlPanelContacts() { var model = new OperationContactsViewModel(); var eaRoles = _viewModelMapperHelper.GetListEaRole(); var institutions = _viewModelMapperHelper.GetAllInstitutions(); var countries = _viewModelMapperHelper.GetCountryList(); model.Institution = institutions.ListItemInstitution; model.Country = countries.CountryList; model.EaRole = eaRoles.EaRole; model.Display = _viewModelMapperHelper.GetDisplayedOptions(); return(PartialView("~/Areas/Contacts/Views/ControlPanelContacts/ControlPanelOperationContacts.cshtml", model)); }
public virtual ActionResult ReadControlPanelContact(string operationNumber, int executorContactId, string userName = "") { var model = new OperationContactsRowViewModel(); var response = _operationContactsService.GetControlPanelContact(operationNumber, executorContactId, userName); var eaRoles = _viewModelMapperHelper.GetListEaRole(); var institutions = _viewModelMapperHelper.GetAllInstitutions(); var countries = _viewModelMapperHelper.GetCountryList(); model = response.Contact; return(PartialView("~/Areas/Contacts/Views/ControlPanelContacts/ReadPartial/ReadControlPanelContacts.cshtml", model)); }