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