Exemplo n.º 1
0
        public JsonResult DeleteMemories(int id)
        {
            var Memories = MermoriesServices.GetSinglememorys(id);
            var Data     = MermoriesServices.Delete(id);

            return(Json(Memories, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public ActionResult DisplayMemories(int id)
        {
            if (Session["UserId"] != null)
            {
                MemoriesModel model = new MemoriesModel()
                {
                    Memories = MermoriesServices.GetSinglememorys(id)
                };

                return(View(model));
            }
            return(RedirectToAction(LoginPages.Login, LoginPages.Account, new { area = "" }));
        }
Exemplo n.º 3
0
        public JsonResult GetMemoriesforEdit(int Memoriesid)
        {
            var Data = MermoriesServices.GetSinglememorys(Memoriesid);

            return(Json(Data, JsonRequestBehavior.AllowGet));
        }