Ejemplo n.º 1
0
 public ActionResult Create(Salla salla)
 {
     try
     {
         // TODO: Add insert logic here
         salla.CreatedOn = DateTime.Now;
         if (SallatDAL.Insert(salla))
         {
             return(Redirect("Index"));
         }
         return(View(salla));
     }
     catch
     {
         return(View());
     }
 }
Ejemplo n.º 2
0
        // GET: Sallat/Details/5
        public ActionResult Details(int id)
        {
            Salla salla = SallatDAL.Read(id);

            return(View("Details", salla));
        }