public static bll.ProductCategory ToProductCategory(this dto.Category dto, bll.ProductCategory bll) { //bll.ProductCategory bll = new bll.ProductCategory(dto.Id); return(bll); }
public static dto.Category ToDTO(this bll.Category bll) { dto.Category dto = new dto.Category(); dto.Id = bll.Id; dto.Name = bll.Name; dto.Type = bll.Type; dto.Description = bll.Description; dto.CreateDate = bll.CreateDate; dto.CreateBy = bll.CreateBy; return(dto); }
public static bll.Category ToBLL(this dto.Category dto) { bll.Category bll = new bll.Category(); bll.Id = dto.Id; bll.Name = dto.Name; bll.Type = dto.Type; bll.Description = dto.Description; bll.CreateDate = dto.CreateDate; bll.CreateBy = dto.CreateBy; return(bll); }