public static WeCharUserInfoDomain ToDomainModel(this WeCharUserInfo model) { return(Mapper.Map <WeCharUserInfoDomain>(model)); }
/// <summary> /// مپ کردن به انتیتی مورد نظر /// </summary> /// <typeparam name="TProject"></typeparam> /// <param name="project"></param> /// <returns></returns> public TEntity Map <TProject>(TProject project) => Mapper.Map <TEntity>(project);
public void Renew(ProductOrdersDTO productorders) { _dal.Update <T_ProductOrders>(Mapper.Map <T_ProductOrders>(productorders), true); }
public ProductOrdersDTO Get(int ProductOrdersID) { return(Mapper.Map <ProductOrdersDTO>(_dal.GetEntityByID <T_ProductOrders>(ProductOrdersID))); }
public ProductOrdersDTO Add(ProductOrdersDTO productorders) { T_ProductOrders FruitResult = _dal.Insert <T_ProductOrders>(Mapper.Map <T_ProductOrders>(productorders)); return(Mapper.Map <ProductOrdersDTO>(FruitResult)); }