public static CommodityViewModel Create(List <CommodityLink> commodities, List <KeyValuePair <string, string> > errors, bool isAlreadyImported) { var viewModel = new CommodityViewModel() { Commodities = commodities, Errors = errors, AlreadyImported = isAlreadyImported }; return(viewModel); }
public static CommodityViewModel Create(List<CommodityLink> commodities, List<KeyValuePair<string, string>> errors, bool isAlreadyImported) { var viewModel = new CommodityViewModel(){Commodities = commodities, Errors = errors, AlreadyImported = isAlreadyImported}; return viewModel; }