Exemplo n.º 1
0
        public ActionResult RemoveLetterType(int id)
        {
            // get the list of letter types from Session
            List <LetterTypeModel> lettertypes = getLetterTypes();

            lettertypes.RemoveAt(lettertypes.FindIndex(lt => lt.Id == id));

            LetterTypeProcessor.DeleteLetterType(id);

            return(RedirectToAction("LetterTypes", "Language"));
        }