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