public IActionResult AddActionForPlant([FromBody] PlantsActionDto actionDto)
        {
            var user = _userAuthService.GetUser(actionDto.UserId);

            _scheduledActionService.AddPlantsAction(user, actionDto);
            return(Ok());
        }
Beispiel #2
0
        public UserDTO GetUser(string Id)
        {
            RentUser user = _userAuthService.GetUser(Id);

            return(new UserDTO()
            {
                Id = user.Id,
                FirstName = user.FirstName,
                LastName = user.LastName,
                UserName = user.UserName
            });
        }