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