public async Task<HttpResponseMessage> PostSet(Guid id, ParameterSaveRequest parameter) { await _componentsRepository.SaveParameter(new Parameter { Id = id, Name = parameter.Name, Description = parameter.Description, Sets = parameter.Sets, }); return Request.CreateResponse(HttpStatusCode.OK); }
public async Task <HttpResponseMessage> PostSet(Guid id, ParameterSaveRequest parameter) { await _modelRepository.SaveParameter(new Parameter { Id = id, Name = parameter.Name, Description = parameter.Description, Sets = parameter.Sets, }); return(Request.CreateResponse(HttpStatusCode.OK)); }