Ejemplo n.º 1
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);
 }
Ejemplo n.º 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));
        }