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

            request.SetProperties(
                response.ApiKeyHashed,
                response.Created,
                response.JSON,
                response.UserId);
            return(request);
        }
Exemplo n.º 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);
        }