Exemple #1
0
 public async Task<HttpResponseMessage> PostSet(Guid id, SetSaveRequest set)
 {
     await _componentsRepository.SaveSet(new Set
     {
         Id = id,
         Name = set.Name,
         Abbreviation = set.Abbreviation,
         Description = set.Description,
         Numeric = set.Numeric
     });
     return Request.CreateResponse(HttpStatusCode.OK);
 }
Exemple #2
0
        public async Task <HttpResponseMessage> PostSet(Guid id, SetSaveRequest set)
        {
            await _componentsRepository.SaveSet(new Set
            {
                Id           = id,
                Name         = set.Name,
                Abbreviation = set.Abbreviation,
                Description  = set.Description,
                Numeric      = set.Numeric
            });

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