Example #1
0
        //GET DETAIL DOUBLE CHECK THIS
        public ActionResult Details(int id)
        {
            var service = new ScheduleUserService(Guid.Parse(User.Identity.GetUserId()));
            var model   = service.GetScheduleUserById(id);

            return(View(model));
        }
Example #2
0
        public ActionResult Delete(int EventID)
        {
            var service = new ScheduleUserService(Guid.Parse(User.Identity.GetUserId()));
            var model   = service.GetScheduleUserById(EventID);

            return(View(model));
        }
Example #3
0
        public ActionResult Edit(int id)
        {
            var service = new ScheduleUserService(Guid.Parse(User.Identity.GetUserId()));
            var detail  = service.GetScheduleUserById(id);
            var model   =
                new ScheduleUserEdit
            {
                ServiceID        = detail.ServiceID,
                EventID          = detail.EventID,
                UserName         = detail.UserName,
                UserNumber       = detail.UserNumber,
                StartTime        = detail.StartTime,
                ServicesVariable = detail.ServicesVariable
            };

            return(View(model));
        }