public JsonResult GetCog(string id) { Cog c = new Cog() { Id = new Guid(id), Name = "test", Creation = DateTime.Now }; return Json(c, JsonRequestBehavior.AllowGet); }
public JsonResult AddCogFailureReturnNull(Cog cog) { return Json(null, JsonRequestBehavior.AllowGet); }
public JsonResult AddCog(Cog cog) { return Json(cog, JsonRequestBehavior.AllowGet); }