Repository.Import.MatchImport.LesVåpenOppsett C# (CSharp) Method

LesVåpenOppsett() private method

private LesVåpenOppsett ( OfficeOpenXml.ExcelWorksheet sheet, int row, ExcelMatch match ) : void
sheet OfficeOpenXml.ExcelWorksheet
row int
match ExcelMatch
return void
        private void LesVåpenOppsett(ExcelWorksheet sheet, int row, ExcelMatch match)
        {
            var våpen = sheet.GetValue(ExcelSheet.Match.Pr_lag_FELLE, row);

            if (!string.IsNullOrEmpty(våpen))
                match.PrLagFelle = int.Parse(våpen);

            våpen = sheet.GetValue(ExcelSheet.Match.Pr_lag_BOMBE, row);

            if (!string.IsNullOrEmpty(våpen))
                match.PrLagBombe = int.Parse(våpen);
        }