public ActionResult Delete(long chipCardId) { try { var result = userCardRepository.Delete(chipCardId); return(Ok(new { success = true, data = result })); } catch (Exception ex) { return(Ok(new { success = false, errorMessage = ex.GetBaseException() })); } }
public bool Delete(UserCard model) { return(userCardRepository.Delete(model)); }