public IActionResult Add([FromBody] BrandModel brandModel, [FromRoute] int page = 1, [FromRoute] int pagesize = 10)
 {
     _bmRepo.Add(brandModel);
     _bmRepo.Save();
     return(BrandModelsList(0, page, pagesize));
 }
Exemple #2
0
 public void Save(BrandModels brandModel)
 {
     _brandModelRepository.Add(brandModel);
     _unitOfWork.Complete();
 }