public async Task <ActionResult <BaseDto <User> > > Add(LoginParameter loginParameter)
        {
            var user = await userService.AddUserAsync(loginParameter.UserName, loginParameter.Password);

            BaseDto <User> dto = new BaseDto <User>(Dto.StatusCode.Success, "", user);

            return(Ok(dto));
        }
        public async Task <ActionResult <BaseDto <object> > > Login([FromBody] LoginParameter loginParameter)
        {
            var user = await userService.GetUserAsync(loginParameter.UserName, loginParameter.Password);

            if (user != null)
            {
                var token            = AppHelper.Instance.GetToken(user);
                BaseDto <object> dto = new BaseDto <object>(Dto.StatusCode.Success, "", new { token });
                return(Ok(dto));
            }
            return(Ok(new BaseDto <object>(Dto.StatusCode.Error, "", null)));
        }