Пример #1
0
 public ActionResult <HabitResponse> AddNewHabit(Guid userID, [FromBody] HabitRequest data)
 {
     return(habitService.CreateHabit(data, userID));
 }
Пример #2
0
        public JsonResult Create([FromBody] CreateHabitRequest request)
        {
            var response = _habitService.CreateHabit(request);

            return(ServiceResponse(response));
        }