Пример #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,
                DefaultValue = parameter.DefaultValue,
                Unit         = parameter.Unit,
            });

            return(Request.CreateResponse(HttpStatusCode.OK));
        }