public ActionResult Delete(int id)
        {
            repository.Delete(id);

            return(Ok(new
            {
                status = "200",
                msg = "OK",
                obj = new { }
            }));
        }
 public RedirectToActionResult Delete(int id)
 {
     contaLuzRepository.Delete(id);
     return(RedirectToAction("Index"));
 }