public HttpResponseMessage Swag(HttpRequestMessage request) { var swag = JsonConvert.DeserializeObject <SwagItem[]>(request.Content.ReadAsStringAsync().Result); _swagRepository.AddSwag(swag); return(new HttpResponseMessage()); }
public void AddSwag(SwagItem swag) { _swagRepository.AddSwag(swag); }