Exemple #1
0
 public void AddApiKey(ApiApiKeyResponseModel item)
 {
     if (!this.ApiKeys.Any(x => x.Id == item.Id))
     {
         this.ApiKeys.Add(item);
     }
 }
Exemple #2
0
        public virtual ApiApiKeyRequestModel MapResponseToRequest(
            ApiApiKeyResponseModel response)
        {
            var request = new ApiApiKeyRequestModel();

            request.SetProperties(
                response.ApiKeyHashed,
                response.Created,
                response.JSON,
                response.UserId);
            return(request);
        }
Exemple #3
0
        public virtual ApiApiKeyResponseModel MapRequestToResponse(
            string id,
            ApiApiKeyRequestModel request)
        {
            var response = new ApiApiKeyResponseModel();

            response.SetProperties(id,
                                   request.ApiKeyHashed,
                                   request.Created,
                                   request.JSON,
                                   request.UserId);
            return(response);
        }