Ejemplo n.º 1
0
        public async Task <ActionResult> MoveTracker(MoveTrackerTypeCommand command)
        {
            if (await Mediator.Send(command) == null)
            {
                return(BadRequest());
            }

            return(new JsonResult("Success"));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> MoveTracker(List <Guid> id)
        {
            var activityTypes = await Mediator.Send(new GetActivityTypeListQuery());

            ViewBag.ActivityTypes = activityTypes.ActivityTypes;

            var request = new MoveTrackerTypeCommand {
                TrackersIds = id
            };

            return(PartialView("_MoveTracker", request));
        }