Exemple #1
0
 public IndexViewModel BuildViewModel()
 {
     return(new IndexViewModel()
     {
         TextTemplateBatches = textTemplateBatchRepository.GetAll().OrderBy(a => a.Name)
     });
 }
        public ActionResult Modify(string id)
        {
            var batch = textTemplateBatchRepository.GetAll().Where(a => a.Id == id).FirstOrDefault();

            if (batch == null)
            {
                return(RedirectToAction("Index"));
            }

            return(View("Modify", modifyViewModelBuilder.BuildViewModel(textTemplateBatchToTextTemplateBatchModifyInputModelMapper.CreateInstance(batch))));
        }
Exemple #3
0
 public IEnumerable <TextTemplateBatch> GetAll()
 {
     return(textTemplateBatchRepository.GetAll());
 }