private static Products ConvertToProduct(ProductView modelView) { var dev = new Products { Id = modelView.Id, Name = modelView.Name, Description = modelView.Description, price = modelView.price, SerialCode = modelView.SerialCode, ImageUrl = modelView.ImageUrl, CategoryId = modelView.CategoryId, BrandId = modelView.BrandId, }; return dev; }
public void Insert(Products model) { _produtsRepository.Insert(model); }
public void Update(Products model) { _produtsRepository.Update(model); }
public void Delete(Products model) { _produtsRepository.Delete(model); }