/// <summary> /// To the entity. /// </summary> /// <param name="model">The model.</param> /// <param name="destination">The destination.</param> /// <returns>SanPham.</returns> public static SanPham ToEntity(this SanPhamModel model, SanPham destination) { return(model.MapTo(destination)); }
/// <summary> /// To the entity. /// </summary> /// <param name="model">The model.</param> /// <returns>SanPham.</returns> public static SanPham ToEntity(this SanPhamModel model) { return(model.MapTo <SanPhamModel, SanPham>()); }