public async Task <IActionResult> RIndex()
        {
            var mpID = await _userMpAppService.GetDefaultMpId();

            var output = await _mpEventAppService.GetModelByEventTypeAsync(MpEventType.Subscribe.ToString(), mpID);

            if (output == null)
            {
                output           = new MpEventDto();
                output.MpID      = mpID;
                output.EventType = MpEventType.Subscribe.ToString();
            }
            return(View(output));
        }
        public async Task <PartialViewResult> RContentSelector()
        {
            var mpID = await _userMpAppService.GetDefaultMpId();

            var output = await _mpEventAppService.GetModelByEventTypeAsync(MpEventType.Subscribe.ToString(), mpID);

            if (output == null)
            {
                output           = new MpEventDto();
                output.MpID      = mpID;
                output.EventType = MpEventType.Subscribe.ToString();
            }

            ReplyPartialModel model = JsonConvert.DeserializeObject <ReplyPartialModel>(JsonConvert.SerializeObject(output));

            return(PartialView("_ContentSelector", model));
        }
 public CreateOrEditMpEventViewModel(MpEventDto output)
 {
     output.MapTo(this);
 }