コード例 #1
0
        public ActionResult Delete(int id)
        {
            Repositories.Delete(id);

            return(Ok(new
            {
                status = "200",
                msg = "OK",
                obj = new { }
            }));
        }
コード例 #2
0
 public RedirectToActionResult Delete(int id)
 {
     contaLuzRepositories.Delete(id);
     return(RedirectToAction("Index"));
 }