public async Task<HttpResponseMessage> PostConstraintGroup(Guid id, ConstraintGroupSaveRequest constraintGroup)
 {
     await _componentsRepository.SaveConstraintGroup(new ConstraintGroup
     {
         Id = id,
         Name = constraintGroup.Name,
         Description = constraintGroup.Description,
     });
     return Request.CreateResponse(HttpStatusCode.OK);
 }
Beispiel #2
0
        public async Task <HttpResponseMessage> PostConstraintGroup(Guid id, ConstraintGroupSaveRequest constraintGroup)
        {
            await _componentsRepository.SaveConstraintGroup(new ConstraintGroup
            {
                Id          = id,
                Name        = constraintGroup.Name,
                Description = constraintGroup.Description,
            });

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