public ActionResult CopyRoutine(CreateRoutineInput input) { var routineAppService = new RoutineAppService(); var routine = routineAppService.Create(input); return(new JsonResult(routine)); }
public ActionResult DeleteRoutine(DeleteRoutineInput input) { var routineAppService = new RoutineAppService(); routineAppService.Delete(input); return(new JsonResult("Success")); }
public ActionResult GetRoutine(GetRoutineInput input) { var routineAppService = new RoutineAppService(); var routine = routineAppService.Get(input); return(new JsonResult(routine)); }
public ActionResult GetMyRoutines(GetRoutineInput input) { var routineAppService = new RoutineAppService(); var routines = routineAppService.GetList(input); return(new JsonResult(routines)); }