public static LinhVucTacNghiepInfo ToDataInfo(this LinhVucTacNghiep entity) { return(new LinhVucTacNghiepInfo { Id = entity.Id, Name = entity.Ten }); }
public static LinhVucTacNghiepResult ToDataResult(this LinhVucTacNghiep entity) { return(new LinhVucTacNghiepResult { 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 LinhVucTacNghiepInfo ToIfNotNullDataInfo(this LinhVucTacNghiep entity) { return(entity?.ToDataInfo()); }
public static LinhVucTacNghiepResult ToIfNotNullDataResult(this LinhVucTacNghiep entity) { return(entity?.ToDataResult()); }