public ProductEditModel Add() { var root = _env.WebRootPath; var currentUserID = _usermanager.GetUserId(User); string path = root + "\\uploads\\" + currentUserID; if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return(ProductEditModel.Create(_productRepository, _productCategoryRepository, _productImageRepository, _provinceRepository, _districtRepository, _StateRepository)); }
public ProductEditModel Add() { return(ProductEditModel.Create(_productRepository, _productCategoryRepository, _productImageRepository)); }