public BaseModel.BaseResult <ExhibitonEmailViewModel.EmailListResult> GetEmailData() { var result = new BaseModel.BaseResult <ExhibitonEmailViewModel.EmailListResult>(); try { int i = 1; result.Body = _service.EmailGetAll(i); return(result); } catch (Exception ex) { result.Msg = ex.Message; result.IsSuccess = false; return(result); } }
public IActionResult Email(int exhibitionId) { ViewData["exhibitionData"] = _service.EmailGetAll(exhibitionId); ViewData["GetRentalDate"] = _service.GetRentalDate(exhibitionId); return(View()); }