Exemplo n.º 1
0
        public ActionResult GetRoutine(GetRoutineInput input)
        {
            var routineAppService = new RoutineAppService();
            var routine           = routineAppService.Get(input);

            return(new JsonResult(routine));
        }
Exemplo n.º 2
0
        public List <DailyRoutine.Core.Routine.Routine> GetList(GetRoutineInput input)
        {
            var context  = new DailyRoutineDbContext();
            var routines = context.Routines.Where(x => x.UserId == input.UserId).ToList();

            return(routines);
        }
Exemplo n.º 3
0
        public ActionResult GetMyRoutines(GetRoutineInput input)
        {
            var routineAppService = new RoutineAppService();
            var routines          = routineAppService.GetList(input);

            return(new JsonResult(routines));
        }
Exemplo n.º 4
0
        public DailyRoutine.Core.Routine.Routine Get(GetRoutineInput input)
        {
            var context = new DailyRoutineDbContext();
            var routine = context.Routines.Where(x => x.Id == input.Id).FirstOrDefault();

            return(routine);
        }