public bool approveEvent(int event_id, string approve) { var p = _eventRepository.getEventbyId(event_id); if (p.approval_status != "approve") { _eventRepository.approveEvent(event_id, approve); return(true); } return(false); }