public ResponseRegister ActivateRegistered(RegisterModel data) { ResponseRegister resp = new ResponseRegister(); try { int rest = _IRegisterRepository.ActivateRegistered(data); resp.status = rest >= 0 ? StatusResponse.Success : StatusResponse.Error; resp.message = rest >= 0 ? "Activate Successfull." : "Activate Fail."; return(resp); } catch (Exception ex) { _ILogs.LogError("Activate Register Service: ", ex.Message.ToString(), ex.StackTrace); } return(null); }