Ejemplo n.º 1
0
        public IActionResult AddActionForPlant([FromBody] PlantsActionDto actionDto)
        {
            var user = _userAuthService.GetUser(actionDto.UserId);

            _scheduledActionService.AddPlantsAction(user, actionDto);
            return(Ok());
        }
Ejemplo n.º 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
            });
        }