Пример #1
0
 public ActionResult Index(ArticleModel model)
 {
     if (model.Id == 0)
     {
         model = model.GetbyId(1);
     }
     else
     {
         model = model.GetbyId(model.Id);
     }
     return(View("ArticleEdit", model));
 }