public KeyboardViewModel ProcessInputFile(HttpPostedFileBase file) { string[] keyboard = BuildKeyboard(); string result = new StreamReader(file.InputStream).ReadToEnd(); if (!string.IsNullOrEmpty(result)) { result = result.ToUpper(); } string dvrMap = MapToKeyboard(keyboard,result); KeyboardViewModel vm = new KeyboardViewModel { DvrProgramming = dvrMap, FileName = file.FileName, FileContents = result }; return vm; }