public static MucTinResult ToDataResult(this MucTin entity) { return(new MucTinResult { Id = entity.Id, Ten = entity.Ten, MoTa = entity.MoTa, CreateDate = entity.CreateDate, CreatedBy = entity.CreatedBy, IsDeleted = entity.IsDeleted, LastUpdated = entity.LastUpdated, LastUpdatedBy = entity.LastUpdatedBy }); }
public static MucTinResult ToIfNotNullDataResult(this MucTin entity) { return(entity?.ToDataResult()); }