Ejemplo n.º 1
0
        public AjaxResponse CreateUserMeeting(int?userId, MeetingCreateSubmitModel submitModel)
        {
            var ajaxResponse = new AjaxResponse();

            try
            {
                _meetingService.CreateMeeting(new MeetingServiceModel
                {
                    MeetingStatusId = submitModel.MeetingStatusId,
                    UserId          = userId,
                    PersonFirstName = submitModel.PersonFirstName,
                    PersonLastName  = submitModel.PersonLastName,
                    MeetingTime     = submitModel.MeetingTime
                });

                ajaxResponse.IsSuccess = true;
            }
            catch (Exception ex)
            {
                ajaxResponse.Data = new
                {
                    Message = ex.Message
                };
            }

            return(ajaxResponse);
        }
Ejemplo n.º 2
0
        public ActionResult UserMeetingsCreate(int?userId, MeetingCreateSubmitModel submitModel)
        {
            var ajaxResponse = _usersHelper.CreateUserMeeting(userId, submitModel);

            return(Json(ajaxResponse));
        }