Esempio n. 1
0
        public async Task <bool> AssignTokenToUser(string email, string refreshToken, int numberOfDaysToAdd)
        {
            var parameters = new { @Email = email, @RefreshToken = refreshToken, @RefreshTokenExpiryDate = DateTime.Now.AddDays(numberOfDaysToAdd) };
            var result     = await _dapperBase.ExecuteQuery("sp_UpdateRefreshToken", parameters);

            return(result);
        }
Esempio n. 2
0
        public async Task <bool> AddAsync(User model)
        {
            var parameters = new {
                model.Id,
                model.Email,
                model.PasswordHash,
                model.AvatarUrl,
                model.CreatedDate,
                model.ModifiedDate,
                model.Name,
                model.Surname
            };

            var result = await _dapperBase.ExecuteQuery("sp_AddUsers", parameters);

            return(result);
        }
Esempio n. 3
0
 private async Task <bool> AddFile(object parameters)
 {
     return(await _dapperBase.ExecuteQuery("sp_UploadFile", parameters));
 }