/// <summary> /// Convert to Store Model /// </summary> /// <param name="storeViewModel"></param> /// <returns></returns> public static Store ConvertToStoreModel(this StoreViewModel storeViewModel) { Mapper.CreateMap <StoreViewModel, Store>() .ForMember(sto => sto.Id, st => st.MapFrom(s => s.ProductId)); return(Mapper.Map <StoreViewModel, Store>(storeViewModel)); }
/// <summary> /// Remove Store Content /// </summary> /// <param name="storeViewModel"></param> public void RemoveStoreContent(StoreViewModel storeViewModel) { throw new NotImplementedException(); }