Exemple #1
0
 public ComponentTypeSpecificationMinimal MapToBLL(SpecificationListEdit apiSpecificationList)
 {
     return(new ComponentTypeSpecificationMinimal
     {
         Id = apiSpecificationList.Id,
         ComponentTypeId = apiSpecificationList.ComponentTypeId,
         Description = apiSpecificationList.Description
     });
 }
        public async Task <IActionResult> PutSpecificationList(int id, SpecificationListEdit specificationList)
        {
            if (id != specificationList.Id)
            {
                return(BadRequest());
            }
            _bll.SpecificationLists.UpdateNoReturnAsync(_mapper.MapToBLL(specificationList));
            await _bll.SaveChangesAsync();

            return(NoContent());
        }