public JsonResult Delete(int id) { var del = _sitesRepo.FindById(id); _sitesRepo.Remove(del); return(Json(new { success = true, id })); }
public bool Remove(int id) { return(efGenericRepository.Remove(id)); }