Exemple #1
0
 public static ProductStatusModel FormDto(ProductStatusDto dto)
 {
     return(new ProductStatusModel
     {
         Active = dto.Active == 1,
         Description = dto.Description,
         Id = dto.Id
     });
 }
        public void AddNewProduct(ProductTypeDto type, OwnerDto owner, ProductStatusDto status, ZoneDto zone, string description)
        {
            ProductDto productDto = new ProductDto
            {
                Description = description,
                Id          = SelectedProduct.ProductId,
                Owner       = owner,
                Status      = status,
                Type        = type,
                Zone        = zone
            };

            SaveOrUpdateProduct(productDto);
        }