Beispiel #1
0
        public ActionResult Save(TodoWrap data)
        {
            var repo = new AllRepository();

            if (repo.Save(data))
            {
                return(Ok(repo.GetFirstAll()));
            }
            return(Ok(new { message = "Not okie-dokie." }));
        }
Beispiel #2
0
        public ActionResult GetFirstAll()
        {
            var repo = new AllRepository();

            return(Ok(repo.GetFirstAll()));
        }