예제 #1
0
 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);
 }
예제 #2
0
        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));
        }