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